package com.repair.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
@Data
@ApiModel(value = "新增报修项目参数对象")
public class RepairReportAddForm {
    @ApiModelProperty("报修项目名字")
    @NotNull(message = "报修项目名字不能为空")
    private String repairName;
    @ApiModelProperty("是否自费")
    @NotNull(message = "是否自费不能为空")
    @Min(value = 0,message = "是否自费不能小于0")
    @Max(value = 1,message = "是否自费不能大于1")
    private Integer isNeedPay;
    @ApiModelProperty("付费金额")
    @Min(value = 0,message = "付费金额不能小于0")
    private BigDecimal payMoney;
}
